From b89f209a09cf0522db8c3eef64adaa37cb0a69df Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 1 Feb 2025 13:37:20 -0500 Subject: [PATCH] rust: Regenerate with correct Since To ensure the recent kexec_load API has a feature gate. Signed-off-by: Colin Walters --- Cargo.toml | 1 + rust-bindings/src/auto/sysroot.rs | 2 ++ rust-bindings/src/auto/versions.txt | 2 +- rust-bindings/sys/Cargo.toml | 4 ++++ rust-bindings/sys/src/auto/versions.txt | 2 +- rust-bindings/sys/src/lib.rs | 2 ++ 6 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 14498685..dbc3185d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -101,3 +101,4 @@ v2022_7 = ["v2022_6", "ffi/v2022_7"] v2023_1 = ["v2022_7", "ffi/v2023_1"] v2023_8 = ["v2023_1", "ffi/v2023_8"] v2023_11 = ["v2023_8", "ffi/v2023_11"] +v2025_1 = ["v2023_11", "ffi/v2025_1"] diff --git a/rust-bindings/src/auto/sysroot.rs b/rust-bindings/src/auto/sysroot.rs index 1050a8f5..e0e90e92 100644 --- a/rust-bindings/src/auto/sysroot.rs +++ b/rust-bindings/src/auto/sysroot.rs @@ -100,6 +100,8 @@ impl Sysroot { } } + #[cfg(feature = "v2025_1")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_1")))] #[doc(alias = "ostree_sysroot_deployment_kexec_load")] pub fn deployment_kexec_load(&self, deployment: &Deployment, cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { unsafe { diff --git a/rust-bindings/src/auto/versions.txt b/rust-bindings/src/auto/versions.txt index 2695c65d..4f5f3dd6 100644 --- a/rust-bindings/src/auto/versions.txt +++ b/rust-bindings/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 5433e2582f83) -from gir-files (@ 1ceef435b152) +from gir-files (@ 533c8b9281ba) diff --git a/rust-bindings/sys/Cargo.toml b/rust-bindings/sys/Cargo.toml index a27acda7..f24c765c 100644 --- a/rust-bindings/sys/Cargo.toml +++ b/rust-bindings/sys/Cargo.toml @@ -68,6 +68,7 @@ v2022_7 = ["v2022_5"] v2023_1 = ["v2022_7"] v2023_8 = ["v2023_1"] v2023_11 = ["v2023_8"] +v2025_1 = ["v2023_11"] [lib] name = "ostree_sys" @@ -241,3 +242,6 @@ version = "2023.8" [package.metadata.system-deps.ostree_1.v2023_11] version = "2023.11" + +[package.metadata.system-deps.ostree_1.v2025_1] +version = "2025.1" diff --git a/rust-bindings/sys/src/auto/versions.txt b/rust-bindings/sys/src/auto/versions.txt index 2695c65d..4f5f3dd6 100644 --- a/rust-bindings/sys/src/auto/versions.txt +++ b/rust-bindings/sys/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 5433e2582f83) -from gir-files (@ 1ceef435b152) +from gir-files (@ 533c8b9281ba) diff --git a/rust-bindings/sys/src/lib.rs b/rust-bindings/sys/src/lib.rs index bd7f114f..03814605 100644 --- a/rust-bindings/sys/src/lib.rs +++ b/rust-bindings/sys/src/lib.rs @@ -3084,6 +3084,8 @@ extern "C" { cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> gboolean; + #[cfg(feature = "v2025_1")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2025_1")))] pub fn ostree_sysroot_deployment_kexec_load( self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, -- 2.30.2